remove i’th character from string in Python